package com.shareach.web.basic;

import java.util.HashMap;

/**
 * HTTP请求的统一结构体
 * @author apple
 */
public class Ask {
	private  int  cmd;//命令字
	private String sn;
	private  HashMap<String,Object>  request;//请求参数
	

	public int getCmd() {
		return cmd;
	}

	public void setCmd(int cmd) {
		this.cmd = cmd;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public  HashMap<String,Object> getRequest() {
		return request;
	}

	public void setRequest(HashMap<String,Object> request) {
		this.request = request;
	}

	public void putRequest(String key,Object value) {
		if(this.request==null){
			this.request = new HashMap<String,Object>();
		}
		this.request.put(key, value);
	}
	public Object  getParamater(String key){
		return request.get(key);
	}
}
